//
//  BrowseAlbumController.h
//  OnionHome
//
//  Created by fengjie on 2019/9/30.
//  Copyright © 2019 FengJie. All rights reserved.
//浏览相片大图

#import "BasseViewController.h"
#import "AlbumModel.h"
#import <Photos/Photos.h>
#import "PhotoManger.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^commitBlock)(AlbumModel * model);

@interface BrowseAlbumController : BasseViewController

/**<#属性#>*/
@property (nonatomic,strong)NSIndexPath*indexxPath;
/// 当前相册
@property (nonatomic, strong) AlbumModel *albumModel;

/**点击确定回调*/
@property (nonatomic,copy)commitBlock commitblock;
@end



typedef void(^AlbumCollectionViewCellAction)(PHAsset *asset);

@interface BrowseAlbumCell : UICollectionViewCell

/// 行数
@property (nonatomic, assign) NSInteger row;
/// 相片
@property (nonatomic, strong) PHAsset *asset;
/// 选中事件
@property (nonatomic, copy) AlbumCollectionViewCellAction selectPhotoAction;
/// 是否被选中
@property (nonatomic, assign) BOOL isSelect;

#pragma mark - 加载图片
-(void)loadImage:(NSIndexPath *)indexPath;

@end

NS_ASSUME_NONNULL_END
